package com.home.common.model;

import java.io.Serializable;

/**
 * Description: zTree 返回对象,只要用到 zTree 的都使用这个对象返回
 * Created by 王大宸 on 2020-10-29 23:16
 * Created with IntelliJ IDEA.
 */
public class TreeNode implements Serializable {
    private static final long serialVersionUID = -2959513776033028648L;

    /**
     * id
     */
    private String id;
    /**
     * name
     */
    private String name;

    /**
     * 上级id
     */
    private String parentId;

    /**
     * 是否展開
     */
    private Boolean open;

    /**
     * 是否选中
     */
    private Boolean checked;

    /**
     * 展开时图标
     */
    private String iconOpen;
    /**
     * 关闭时图标
     */
    private String iconClose;

    /**
     * 备用字段1 类型
     */
    private String type;

    /**
     * 备用字段2 级别
     */
    private String grade;

    /**
     * 备用字段3 备注
     */
    private String remarks;

    public TreeNode() {
    }

    public TreeNode(String id, String name, String parentId, Boolean open, String type) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.open = open;
        this.type = type;
    }

    public TreeNode(String id, String name, String parentId, Boolean open, Boolean checked, String iconOpen, String iconClose) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.open = open;
        this.checked = checked;
        this.iconOpen = iconOpen;
        this.iconClose = iconClose;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public String getIconOpen() {
        return iconOpen;
    }

    public void setIconOpen(String iconOpen) {
        this.iconOpen = iconOpen;
    }

    public String getIconClose() {
        return iconClose;
    }

    public void setIconClose(String iconClose) {
        this.iconClose = iconClose;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
